public class FieldHasNoPolymorphic {
    static class Father {
        public int money = 1;
        public Father() {
            money = 2;
            // 虚方法调用
            showMeTheMoney();
        }
        public void showMeTheMoney() {
            System.out.println("I am father, I have $" + money);
        }
    }

    static class Son extends Father {
        public int money = 3;
        public Son() {
            money = 4;
            showMeTheMoney();
        }
        public void showMeTheMoney() {
            System.out.println("I am son, I have $" + money);
        }
    }

    public static void main(String[] args) {
        Father gay = new Son();
        System.out.println("This gay has $" + gay.money);
        // NegativeArraySizeException:  一种运行时异常
        int[][][] array = new int[1][0][-1];
    }
}
